
<form id="form_edit">
<input type="hidden" name="rate" id="rate" value="{[$result.rate]}" size="12">
<input type="hidden" name="rmb" id="rmb" value="{[$result.rmb]}" size="12">
<table>
	<tr>
		<td width="20%" align="right">负责人：</td>
		<td width="30%"><input type="text" name="emp" id="emp" value="{[$result.emp]}:{[$result.emp_t]}" size="12" title="{[$t.emp_|emp:'负责人']}"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
		<td width="20%" align="right"></td>
		<td width="30%"></td>		
	</tr>
	<tr>
		<td align="right">银行：</td>
		<td colspan="3"><select name='bank'>
			{[html_options options=$bank_option selected=-]}
		</select> <select name='type'>
			{[html_options options=$type_option selected=$result.type]}
		</select></td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td colspan="3"><textarea rows="2" name="name" cols="55">{[$result.name]}</textarea></td>
	</tr>
	<tr>
		<td align="right">分类：</td>
		<td colspan="3"><select name='category'>
			{[html_options options=$category_option selected=$result.category]}
		</select></td>
	</tr>
	<tr>
		<td align="right">金额：</td>
		<td colspan="3"><input type="text" name="amount" id="amount" value="{[$result.amount]}" size="12"> <select name='currency' id='currency'>
			{[html_options options=$currency_option selected=$result.currency]}
		</select> <label id="label_amount"></label></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<script type='text/javascript'>
var a = $("#amount").val();
var b = $("#currency").find("option:selected").text();

Currency.upper(a, b, "#label_total");

var exchange = {[$result.exchange]};
</script>

<script type="text/javascript" src="js/finance/money/add.js?r={[$smarty.now]}"></script>
